<#assign xhtmlCompliant = true in spring>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
      <!-- HTTP 1.1 -->
      <meta http-equiv="Cache-Control" content="no-store"/>
      <!-- HTTP 1.0 -->
      <meta http-equiv="Pragma" content="no-cache"/>
      <!-- Prevents caching at the Proxy Server -->
      <meta http-equiv="Expires" content="0"/>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      
      <link type="text/css" rel="stylesheet" href="${base}/styles/sharetime.css" />
      
      <title>注册</title>
  </head>
  <body>
    <div id="page" >
    <div id="header" class="clearfix" >
    </div>
    <div id="content" class="clearfix" >
      <@spring.bind "user.*"/>
      <form name="signupForm" method="POST" action="<@spring.url '/view/signup'/>" >
          <div style="width: 100%;padding-left:30px;">
              <ol>
                  <!-- step 1 -->
                  <li style="margin: 10px;">
                      <div class="steptitle">输入真实姓名和Email地址</div>
                      <div class="stepdesc" style="width: 90%">
                              系统将通过Email给您发送相关信息
                      </div>
                      <div class="stepfield" style="width: 90%">
                          <div class="steplabel">真实姓名: </div>
                          <@spring.formInput "user.fullname", 'id="fullname" size="30"'/>
                          <@spring.showErrors "<br>", "error"/>
                          
                          <div style="padding-top: 4px">
                              <div class="steplabel">Email: </div>
                              <@spring.formInput "user.email", 'id="email" size="30"'/>
                          </div>
                          <@spring.showErrors "<br>", "error"/>
                      </div>
                    </li>
                    <!-- step 2 -->
                    <li style="margin: 10px;">
                      <div class="steptitle">输入用户名</div>
                      <div class="stepdesc" style="width: 90%">该用户名用以登录系统</div>
                      <div class="stepfield" style="width: 90%">
                      <div class="steplabel">用户名: </div>
                      <@spring.formInput "user.username", 'id="username" size="30"'/>
                      <@spring.showErrors "<br>", "error"/>
                    </li>
                    <!-- step 3 -->
                    <li style="margin: 10px;">
                      <div class="steptitle">输入密码</div>
                      <div class="stepdesc">为帐户选择一个密码</div>
                      <div class="stepfield" style="width: 90%">
                          <div class="steplabel">密码: </div>
                          <@spring.formInput "user.password" 'size="30"'/>
                          <@spring.showErrors "<br>", "error"/>
                          <div style="padding-top: 4px">
                              <div class="steplabel">确认密码: </div>
                              <@spring.formInput "user.confirmPassword" 'size="30"'/>
                          </div>
                      </div><br/>
                      <input type="submit"  value="注册"/>
                    </li>
                </ol>
            </div>
        </form>
      </div>
      <div id="footer">
      </div>
      </div>
    </body>
</html>